<?php

class User_IndexController extends My_Controller_Action
{

    public function init()
    {
        parent::init();
    }

    public function indexAction()
    {
    	$auth = Zend_Auth::getInstance();
     	$this->view->rightModules('right');
     	   
        if ($auth->hasIdentity() && $auth->getIdentity()->username != "facebooker")
		{
        	$this->view->user = $auth->getIdentity();
        }
		else
		{
        	$this->_redirect('user/account/login');
        }
    }
}

